<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/base.jsp"%>
<!-- 查询行政区域信息-->
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<base href="<%=basePath%>">

<title>行政区域列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery-1.4.4.min.js"></script>
<script src="js/admin.js"></script>
</head>
<body>
		<div class="panel admin-panel">
			<div class="panel-head">
				<strong class="icon-reorder">行政区域信息列表</strong>
			</div>
			<div class="padding border-bottom">
				<form id="form-add" method="post" class="form-x">
			<ul class="search" style="padding-left:10px;">
				<li><a class="button border-main"  onclick="JavaScript:history.go(-1)"> 返回</a></li>
			</ul>
			</div>
			<table class="table table-hover text-center">
				<tr>
					<th>行政区域编号</th>
					<th>行政区域名称</th>
					<th>级别</th>
				</tr>
				<%
					String areacode = request.getParameter("areacode");
					String pageNo = request.getParameter("pageNo");
					int p = pageNo == null ? 1 : Integer.parseInt(pageNo);
					AreaDao dao = new AreaDao();
					String sql = "select * from area where areacode='"+areacode+"'";
					Object[] params = {};
					Page pageBean = dao.queryOjectsByPage(sql, params, p,
							Constant.ROW);
				%>
				<%
					for (int i = 0; i < pageBean.getDatas().size(); i++) {

						Area  model= (Area) pageBean.getDatas().get(i);
						
				%>
				<tr>
					<td><%=model.getAreacode()%></td>
					<td><%=model.getAreaName() %></td>
					<td><%=model.getGrade() %></td>
					
				</tr>
				<%
					}
				%>
			</table>
	</form>
</body>
</html>
